package com.liaowei.novel.domain;

import java.util.Date;

public class Novel {
    private Integer id; // id
    private String name; // 名称
    private String description; // 简介
    private Integer UserId; // 用户id
    private Integer categoryId; // 分类id
    private String coverImage; // 封面图片
    private Long collectNumber; // 收藏数，这里作访问数
    private Date createTime; // 创建时间

    public Novel() {
    }

    public Novel(Integer id, String name, String description, Integer userId, Integer categoryId, String coverImage, Long collectNumber, Date createTime) {
        this.id = id;
        this.name = name;
        this.description = description;
        UserId = userId;
        this.categoryId = categoryId;
        this.coverImage = coverImage;
        this.collectNumber = collectNumber;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getUserId() {
        return UserId;
    }

    public void setUserId(Integer userId) {
        UserId = userId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public Long getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Long collectNumber) {
        this.collectNumber = collectNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
